#include "Player.h"

bool Poker::Player::HasNoCards()
{
    return this->m_Cards.empty();
}

bool Poker::Player::Laydownable()
{
    std::vector<Poker::Card> res;
    for (const auto &card : m_Cards)
    {
        if(card.selected)
        {
            res.push_back(card);
        }
    }

    Poker::CardSub cardSub(res);
    return cardSub.Confirm();
}
